package cn.dcpnet.pojo;

import cn.dcpnet.IDFeignResponse;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: 代国平
 * @since: 2025/1/7 16:47
 */
@Data
@NoArgsConstructor
public class ResponseDto<T> implements IDFeignResponse<T> {
    private String id;
    private Long timestamp;
    private T data;

    public ResponseDto(String id, T data) {
        this.id = id;
        this.data = data;
        this.timestamp = System.currentTimeMillis();
    }
}
